﻿using System;

using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Kunlun.Models
{
    [Table("News")]
    public class News
    {
        [Key]
        [DisplayName("新闻ID")]
        public int ID { get; set; }

        [DisplayName("新闻标题")]
        public string NewsTitle { get; set; }

        [DisplayName("新闻内容")]
        public string NewsContent { get; set; }

        [DisplayName("添加时间")]
        public DateTime BeginDate { get; set; }

        [DisplayName("最后修改时间")]
        public DateTime LastUpdateTime { get; set; }

        [Required(ErrorMessage = "新闻排序不能空")] 
        [DisplayName("新闻排序")]
        public int Orders { get; set; }

        [DisplayName("新闻查看次数")]
        public int Clicknum { get; set; }

        [DisplayName("是否发布")]
        public bool IsPub { get; set; }

        [DisplayName("新闻所属频道")]
        public string Channel { get; set; }

    }
}
